package com.shaozj.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shaozj.system.model.entity.SysDictType;
import com.shaozj.system.model.form.DictTypeForm;
import com.shaozj.system.model.query.DictTypePageQuery;
import com.shaozj.system.model.vo.DictTypePageVO;


public interface SysDictTypeService extends IService<SysDictType> {

    Page<DictTypePageVO> getDictTypePage(DictTypePageQuery queryParams);

    /**
     * 获取字典类型表单详情
     * @param id
     * @return
     */
    DictTypeForm getDictTypeForm(Long id);

    /**
     * 保存字典类型
     * @param dictTypeForm
     * @return
     */
    boolean saveDictType(DictTypeForm dictTypeForm);

    /**
     * 修改字典类型
     * @param id
     * @param dictTypeForm
     * @return
     */
    boolean updateDictType(Long id, DictTypeForm dictTypeForm);

    /**
     * 删除字典类型
     * @param idStr
     * @return
     */
    boolean deleteDictType(String idStr);

}


